How to Turn Off Form Autocompletion - Web security

This article explains how a website can disable autocomplete for form fields.

By default, browsers remember information that the user submits through input fields on websites. This enables the browser to offer autocomplete (i.e. suggest possible completions for fields that the user has started typing in) or autofill (i.e. pre-populate certain fields upon load).

These features can be a privacy concern for users, so while browsers can enable users to disable them, they are usually enabled by default. However, some data submitted in forms are either not useful in the future (e.g. a one-time pin) or contain sensitive information (e.g. a unique government identifier or credit card security code). A website might prefer that the browser not remember the values for such fields, even if the browser's autocomplete feature is enabled.

Disabling autocompletion

To disable autocompletion in forms, a website can set the autocomplete attribute to "off":

autocomplete="off"

A website can either do this for an entire form, or for specific input elements in a form:

<form method="post" action="/form" autocomplete="off"> […] </form> <form method="post" action="/form"> […] <div> <label for="cc">Credit card:</label> <input type="text" name="cc" autocomplete="off"> </div> </form>

Setting autocomplete="off" here has two effects:

  • It stops the browser from saving field data for later autocompletion on similar forms though heuristics that vary by browser.
  • It stops the browser from caching form data in session history. When form data is cached in session history, the information filled in by the user will be visible after the user has submitted the form and clicked on the Back button to go back to the original form page.

In some cases, the browser will keep suggesting autocompletion values even if the autocomplete attribute is set to off. This unexpected behavior can be quite puzzling for developers. The trick to really forcing the no-autocompletion is to assign a random string to the attribute, for example:

autocomplete="nope"

Since this random value is not a valid one, the browser will give up.

The autocomplete attribute and login fields

Modern browsers implement integrated password management: when the user enters a username and password for a site, the browser offers to remember it for the user. When the user visits the site again, the browser autofills the login fields with the stored values.

Additionally, the browser enables the user to choose a master password that the browser will use to encrypt stored login details.

Even without a master password, in-browser password management is generally seen as a net gain for security. Since users do not have to remember passwords that the browser stores for them, they are able to choose stronger passwords than they would otherwise.

For this reason, many modern browsers do not support autocomplete="off" for login fields:

  • If a site sets autocomplete="off" for a form, and the form includes username and password input fields, then the browser will still offer to remember this login, and if the user agrees, the browser will autofill those fields the next time the user visits the page.
  • If a site sets autocomplete="off" for username and password input fields, then the browser will still offer to remember this login, and if the user agrees, the browser will autofill those fields the next time the user visits the page.

This is the behavior in Firefox (since version 38), Google Chrome (since 34), and Internet Explorer (since version 11).

If an author would like to prevent the autofilling of password fields in user management pages where a user can specify a new password for someone other than themself, autocomplete="new-password" should be specified, though support for this has not been implemented in all browsers yet.

developer.mozilla.org

Using AutoComplete in HTML Forms (Internet Explorer)

Note  As of December 2011, this topic has been archived and is no longer actively maintained. For more information, see Archived Content. For information, recommendations, and guidance regarding the current version of Windows Internet Explorer, see Internet Explorer Developer Center.

 

HTML forms are a key component to exchanging information between a user and the server. They are common in most visual programming languages, and are used in a variety of implementations on the Web. For example, forms allow users to perform tasks such as searching a Web site, providing feedback, or placing an order.

Microsoft Internet Explorer 5 and later includes an integrated feature called AutoComplete, which helps users quickly enter information into form fields. The AutoComplete innovation in HTML forms safely stores information entered into INPUT_text and INPUT_password fields. When a user submits a form, the name, value, and domain of the form component are encrypted for safekeeping. Storing the information helps users to complete single-line text fields. The next time that user visits a Web page and begins typing in a text field with the same name, the autocomplete attribute prompts an AutoComplete box to appear, providing the user with a list of previously used data.

An AutoComplete box is the primary interface for presenting data to the user. Until an entry in the AutoComplete box is selected, the data remains on the user's computer and is never accessible to a Web site.

Advantages of AutoComplete in HTML Forms

AutoComplete in HTML forms provides the following advantages:

  • Information is stored on the user's computer.
  • User experience is simplified by helping the user fill out forms.
  • User information remains secure. While users can see their private information on a Web site, a Web site cannot see the list of personal information until one of the stored values is selected and the field is filled in.

AutoComplete is an easy feature to incorporate into Web sites, and it provides a nonintrusive advantage for Web authors and users. For instance, when the user begins typing in an INPUT type=text field, the AutoComplete box presents a list of suggestions. The list of suggestions is saved in an encrypted store on the user's computer and is not accessible to Web sites. Because the user interface is integrated with the browser, it is streamlined with the Web page and transparent to the user. Individual Web sites do not need to make any changes to their content to use AutoComplete.

AutoComplete encrypts data for the AutoComplete box in a primary data store based on the NAME attribute of the INPUT type=text element. The information is shared among sites that include INPUT type=text elements with the same NAME attribute. Web authors do not have to change the NAME attribute of the field to select what data is displayed by AutoComplete. Instead, the author can use the VCARD_NAME attribute, which sets or retrieves the vCard value used by AutoComplete. vCard is a standards-based way to refer to common personal information.

The AutoComplete box appears discretely so as not to obstruct the view of the form. When the box is open, users can select information from the AutoComplete store. For example, a text field for a user's first name produces a list of previously submitted names.

The information is provided from previously submitted field values. It is specified through the vCard schema using the VCARD_NAME attribute, and this allows form fields to be completed without ever typing in a character. The vCard schema is created from the values specified in the Profile Assistant. The vCard schema is implemented when a Web site specifies one of the possible values that correspond to information in the Profile Assistant. The Profile Assistant can be accessed from Internet Explorer by choosing Internet Options on the Tools menu, selecting the Content tab, and then clicking the My Profile button in the Personal Information section.

The AutoComplete box appears when the following circumstances occur:

  • When the first character is entered.
  • When the INPUT type=text element contains fewer than two characters.
  • When the INPUT type=text element has focus and the user presses the down arrow.
  • When the INPUT type=text element has focus and is clicked.

If the VCARD_NAME attribute is present, the AutoComplete box includes any information from the specified vCard item. Users can change the information listed in the AutoComplete box for text fields with the VCARD_NAME attribute.

Information for the AutoComplete box is provided by the following:

  • The data store, primarily. The data store draws from previously completed INPUT type=text fields. The contents of the AutoComplete box are retrieved from the values corresponding to the field name.
  • The vCard schema. This schema is created from the values specified in the Profile Assistant.
  • The Common Name list. This list is generated from commonly used INPUT type=text field names from popular Web sites, and is linked to the respective vCard schema.

When a user enters information in an INPUT type=text element and submits a form, that information is encrypted and saved in the data store. If the values of the NAME or VCARD_NAME attributes match the data in the data store, that information is provided in the AutoComplete box. A user can quickly travel through an extensive form, because the requested information already is available and only needs to be selected.

Implementing AutoComplete

AutoComplete is enabled by default in Internet Explorer. Web authors and users do not need to make any special accommodations to use this feature. When a user enters information in an INPUT type=text field and submits the form, the data is saved in the encrypted data store. The next time a user begins typing in an INPUT type=text field with the same name or VCARD_NAME attribute value, the AutoComplete box displays a list of suggestions.

 

The VCARD_NAME attribute draws information from the Profile Assistant as well as from previously entered information. The vCard schema draws information from the Profile Assistant based on the following schema names, each of which is represented by a field in the Profile Assistant.

vCard.CellularvCard.CompanyvCard.Department
vCard.DisplayNamevCard.EmailvCard.FirstName
vCard.GendervCard.Home.CityvCard.Home.Country
vCard.Home.FaxvCard.Home.PhonevCard.Home.State
vCard.Home.StreetAddressvCard.Home.ZipcodevCard.Homepage
vCard.JobTitlevCard.LastNamevCard.MiddleName
vCard.NotesvCard.OfficevCard.Pager
vCard.Business.CityvCard.Business.CountryvCard.Business.Fax
vCard.Business.PhonevCard.Business.StatevCard.Business.StreetAddress
vCard.Business.URLvCard.Business.Zipcode

 

The following example demonstrates how the VCARD_NAME attribute and the vCard.Email possible value are used to access and save the AutoComplete information. Rather than looking in the data store for the oEmail field name, the AutoComplete box is populated with values specified for the vCard.Email item.

<INPUT TYPE = text NAME = oEmail VCARD_NAME = "vCard.Email" >

Implementing AutoComplete is easy, but there may be times when either the user or the Web author does not want to use this feature. The AUTOCOMPLETE attribute allows Web authors to selectively disable the AutoComplete feature for a single INPUT type=text element or all INPUT type=text elements in a particular form. For example, by providing a value of off, a particular field or the entire form can be disabled. If a Web author does not want users to see the AutoComplete feature for a password field, the AUTOCOMPLETE attribute can be used to disable the feature for that single field, as in the following example:

<INPUT TYPE = password NAME = oPassword AUTOCOMPLETE = "off" >

In addition, if a Web author does not want users to see the AutoComplete feature for any field in a form, the AUTOCOMPLETE attribute can be used to disable the feature for the entire form.

<FORM AUTOCOMPLETE = "off"> : </FORM>

You can enable AutoComplete by setting the value of the autocomplete property to an empty string.

To determine when a user updates the content of a field from the AutoComplete dialog box, use the onpropertychange event, rather than the onchange event, because the onchange event does not fire.

The AutoComplete Settings dialog box in Internet Explorer also allows users to enable or disable the AutoComplete box, as well as clear previously saved entries. For example, users can use the AutoComplete Settings dialog box in Internet Explorer to enable or disable the AutoComplete feature for forms and addresses, specify whether to include passwords when information is saved, and clear the existing data store.

AutoComplete Security

The AutoComplete box provides several levels of security:

  • Rogue Web sites cannot access the features of an open AutoComplete box.
  • Outsiders cannot collect the saved data store.
  • The data store is encrypted on the user's computer.

The first time a Web site is made aware of the new information is when the user selects one of the suggested entries and the data is entered into the field.

AutoComplete can be turned off using one of the following options:

  1. Administrators can turn off AutoComplete and restrict its use through the Internet Explorer Administrators Kit (IEAK). When an administrator turns off AutoComplete, there is no way for a Web site or user on the administrator's intranet to turn it back on.
  2. Web sites can turn off AutoComplete using the AUTOCOMPLETE attribute. When a Web author disables AutoComplete, the AutoComplete box does not appear for the disabled form or field and the values are not stored.
  3. Users can turn off AutoComplete from the AutoComplete dialog box in Internet Explorer. The AutoComplete dialog box is available by selecting Internet Options from the Tools menu, and then selecting the Content tab. When a user turns off AutoComplete, there is no way a site can turn it back on.

The security measures provided for AutoComplete help protect passwords. The AutoComplete feature does not operate in the same fashion with password fields as with regular text fields. When a password is first entered, the user is prompted with the following options:

  • Yes. The password is saved with the user name for that URL.
  • No. The password is not saved with the user name (default).
  • A check box allowing users to select whether they will be prompted to save passwords. If selected, the dialog box is not displayed again unless re-enabled from the AutoComplete Settings dialog.

When the AutoComplete feature is set to save passwords, a password is automatically filled in when a known user name is provided, and the password and user name are stored by URL. When changing passwords, the user is prompted to save the new password.

AutoComplete provides a convenient and safe way for users to quickly complete forms, and for Web sites to enhance user experience on a page. User information saved in the AutoComplete data store is safeguarded, because Web sites cannot automatically fill in forms using the data store, and a login page facade cannot fool the browser into surrendering the information due to domain-specific security.

 

 

msdn.microsoft.com

»

Attribute of<input> HTML TagWhat does <input autocomplete=""> do?Specifies whether the browser should attempt to automatically complete the input based on user inputs to similar fields.

Code Example

<form> <label for="email">Email Address</label><br> <input type="email" name="email" autocomplete="on"> </form>

New(ish) in HTML5

The autocomplete attribute was introduced as an unofficial HTML feature in Microsoft’s Internet Explorer, and was adopted by a number of other browsers. So there has been wide support for it for a long time, although its exact behavior wasn’t standardized. With HTML5, the autocomplete attribute is an official part of the specification.

autocomplete vs. list & <datalist>

The autocomplete attribute asks the browser to attempt autocompletion, based on user history. This is useful for personal details like name and email address — things the user is likely to have types into similar input fields on other web sites. The autocomplete feature is not able to provide the browser with a list of site-specific autocomplete options. For autocomplete behavior with site-specific suggestions, use the list attribute with the <datalist> element.

Deliberately “broken”

All the major browsers ignore the autocomplete="off" value for certain types of input fields. Internet Explorer and Edge ignore it for all password fields. Firefox ignores it for any field in a login form. Chrome ignores it any time the user has elected to let the browser remember form data. Safari ignores it for username, email, and password fields. Ignoring the autocomplete="off" value is done to enhance usability, and gve the user more control over autocomplete behavior. As a UX designer, you should follow their lead and use autocomplete="off" sparingly. There are are very few use cases in normal forms where it really makes sense to disallow autocomplete. In some complex apps, it makes sense to avoid accidental inputs, but with most standard forms there really is no reason for it.

Autocomplete and name

Browsers use the name attribute in order to figure out what type of information an input field is asking for. So use standard, meaningful values for name. If you are asking for an address, use names like:

  • address-1
  • address-2
  • city
  • state or province
  • zip or postal-code

Don’t use clever or oddly specific names, as that makes it harder for the browser to provide autocomplete suggestions, and it can even lead to the browser trying to fill in the wrong values into the wrong inputs. (Have you ever had your browser fill your phone number into the zip code field? That was the fault of bad naming.)

Values of the autocomplete Attribute

Value Name Notes
off Turns autocomplete off.
on Turns autocomplete on.

All Attributes of input Element

Attribute name Values Notes
step Specifies the interval between valid values in a number-based input.
required Specifies that the input field is required; disallows form submission and alerts the user if the required field is empty.
placeholder Specifies placeholder text in a text-based input.
pattern Specifies a regular expression against which to validate the value of the input.
multiple Allows the user to enter multiple values into a file upload or email input.
min Specifies a minimum value for number and date input fields.
max Specifies a maximum value for number and date input fields.
list Specifies the id of a <datalist> element which provides a list of autocomplete suggestions for the input field.
height Specifies the height of an image input.
formtarget Specifies the browsing context in which to open the response from the server after form submission. For use only on input types of “submit” or “image”.
formmethod Specifies the HTTP method (GET or POST) to be used when the form data is submitted to the server. Only for use on input types of “submit” or “image”.
formenctype Specifies how form data should be submitted to the server. Only for use on input types “submit” and “image”.
formaction Specifies the URL for form submission. Can only be used for type=”submit” and type=”image”.
form Specifies a form to which the input field belongs.
autofocus Specifies that the input field should be in focus immediately upon page load.
accesskey Defines a keyboard shortcut for the element.
autocomplete offon Specifies whether the browser should attempt to automatically complete the input based on user inputs to similar fields.
border Was used to specify a border on an input. Deprecated. Use CSS instead.
checked Specifies whether a checkbox or radio button form input should be checked by default.
disabled Disables the input field.
maxlength Specifies the maximum number of characters that can be entered in a text-type input.
language Was used to indicate the scripting language used for events triggered by the input.
name Specifies the name of an input element. The name and value of each input element are included in the HTTP request when the form is submitted.
size Specifies the width of the input in characters.
src Defines the source URL for an image input.
type buttoncheckboxfilehiddenimagepasswordradioresetsubmittext Defines the input type.
value Defines an initial value or default selection for an input field.
Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for autocomplete

html.com

10 Ajax/jQuery Autocomplete Tutorials/Plugins — SitePoint

Today we are sharing you our compilation of best Ajax and jQuery autocomplete and autosuggest tutorials and plugins with examples. People these days want an instant search and for this, search engines like Google are doing just this. Enjoy!

Related Posts:

Update 21/06/13: Added typahead.js, Magicsuggest, TimeDropdowns.Update 29/09/13: Added textextjs

typahead.js Autocomplete

A fast and fully-featured autocomplete library.Source + Demo

Magicsuggest Autocomplete

Highly flexible auto suggest combo box in the line of Bootstrap themes.Source + Demo

TimeDropdowns Autocomplete

Better time drop downs for ranges: jQuery Time Autocomplete.Source + Demo

1. Ajax-Driven JavaScript ComboBox with Autocomplete

dhtmlxCombo is a cross-browser JavaScript combobox with an autocomplete feature. It extends basic select box functionality and provides the ability to display suggestions while a user types in the text field.

Source + Demo

2. Yahoo and Google Suggestions jQuery Search Box

Learn how to create Yahoo Google suggestions search box in this post.

Source + Demo

3. WICK Web Input Completion Kit

An evolving framework that leverages web standards such as JavaScript, DOM and CSS to facilitate textual input in form UI elements assisted by local and remote data sources. This framework strives to remain unobtrusive and preserve a form’s semantics and accessibility.

SourceDemo

4. PrimeFaces: jQuery AutoComplete

Multiple selection feature for PrimeFaces jQuery AutoComplete has been a popular request and with 3.1, we’ve decided to bring it. Initial implementation was based on a simple input text and values were separated with commas but it didn’t match the coolness standard of PrimeFaces so we’ve decided to implement it Facebook style.

SourceDemo

5. Ajax-Based Multiselect jQuery Autocomplete Control in ASP.Net

Here, we will use jQuery UI Autocomplete Control. To get the Data using AJAX, here we will try Handlers of ASP. Using Handlers against simple asp.net page is that, if we will use ASPX page then it will go through all the phases of page (nearly 1o) whereas Handler is faster than ASPX page.

Source + Demo

6. Autosuggest / Autocomplete with jQuery, Ajax, XML, PHP

The jQuery Autocomplete class adds a popdown menu of suggested values to a text field. The user can either click directly on a suggestion to enter it into the field, or navigate the list using the up and down arrow keys, selecting a value using the tab key. The values for the suggestion list are to provide as XML (by a PHP script, or similar).

SourceDemo

7. FCBKcomplete v 2.8.4

Fancy Facebook-like dynamic inputs with auto complete & pre added values. If you have any comments or requests, please post it and I will try to include all the requested features in the upcoming release.

SourceDemo

8. A fancy Apple.com-style jQuery search suggestion

Make sure you check out the demo (or visit Apple.com) to see this awesome effect work. This example makes use of several techniques: MySQL (for the database), HTML/CSS for styling, PHP for retrieving the data and jQuery for the AJAX request.

SourceDemo

9. AJAX Search Suggest with jQuery

To recreate the search suggest feature, we’re going to use jQuery and a small amount of PHP to query the server for search terms. To allow these two scripts to communicate, we’ll make use of AJAX — passing a string containing the search term from jQuery to PHP.

SourceDemo

10. Easy-To-Use jQuery-Ajax Autosuggest Plugin

This jQuery Ajax autosuggest plugin has the usual functionality with a little extra flexibility: multiple instances, passing custom parameters, the id and the value are returned, keyboard-controlled, and a few others… Almost anything you need from an autosuggest plugin you can do with the built-in options!

SourceDemo

11. jQuery TextExt Plugin

TextExt is a plugin for jQuery which is designed to provide functionality such as tag input and autocomplete.

Source+Demo

Sam Deering is a Front-end Web Developer who specialises in JavaScript & jQuery. Sam is driven and passionate about sharing his knowledge to educate others.

www.sitepoint.com

HTML Forms

The <form> Element

The HTML <form> element defines a form that is used to collect user input:

<form> .form elements . </form>

An HTML form contains form elements.

Form elements are different types of input elements, like text fields, checkboxes, radio buttons, submit buttons, and more.

The <input> Element

The <input> element is the most important form element.

The <input> element can be displayed in several ways, depending on the type attribute.

Here are some examples:

Type Description
<input type="text"> Defines a one-line text input field
<input type="radio"> Defines a radio button (for selecting one of many choices)
<input type="submit"> Defines a submit button (for submitting the form)

You will learn a lot more about input types later in this tutorial.

Text Input

<input type="text"> defines a one-line input field for text input:

Example

<form>   First name:<br>  <input type="text" name="firstname"><br>   Last name:<br>  <input type="text" name="lastname"> </form>

Try it Yourself »

This is how it will look like in a browser:

First name: Last name:

Note: The form itself is not visible. Also note that the default width of a text field is 20 characters.

Radio Button Input

<input type="radio"> defines a radio button.

Radio buttons let a user select ONE of a limited number of choices:

Example

<form>  <input type="radio" name="gender" value="male" checked> Male<br>   <input type="radio" name="gender" value="female"> Female<br>  <input type="radio" name="gender" value="other"> Other</form>

Try it Yourself »

This is how the HTML code above will be displayed in a browser:

Male Female Other

The Submit Button

<input type="submit"> defines a button for submitting the form data to a form-handler.

The form-handler is typically a server page with a script for processing input data.

The form-handler is specified in the form's action attribute:

Example

<form action="/action_page.php">  First name:<br>  <input type="text" name="firstname" value="Mickey"><br>  Last name:<br>  <input type="text" name="lastname" value="Mouse"><br><br>  <input type="submit" value="Submit"></form>

Try it Yourself »

This is how the HTML code above will be displayed in a browser:

The Action Attribute

The action attribute defines the action to be performed when the form is submitted.

Normally, the form data is sent to a web page on the server when the user clicks on the submit button.

In the example above, the form data is sent to a page on the server called "/action_page.php". This page contains a server-side script that handles the form data:

<form action="/action_page.php">

If the action attribute is omitted, the action is set to the current page.

The Target Attribute

The target attribute specifies if the submitted result will open in a new browser tab, a frame, or in the current window.

The default value is "_self" which means the form will be submitted in the current window.

To make the form result open in a new browser tab, use the value "_blank":

Other legal values are "_parent", "_top", or a name representing the name of an iframe.

The Method Attribute

The method attribute specifies the HTTP method (GET or POST) to be used when submitting the form data:

or:

When to Use GET?

The default method when submitting form data is GET.

However, when GET is used, the submitted form data will be visible in the page address field:

/action_page.php?firstname=Mickey&lastname=Mouse

Notes on GET:

  • Appends form-data into the URL in name/value pairs
  • The length of a URL is limited (about 3000 characters)
  • Never use GET to send sensitive data! (will be visible in the URL)
  • Useful for form submissions where a user want to bookmark the result
  • GET is better for non-secure data, like query strings in Google

When to Use POST?

Always use POST if the form data contains sensitive or personal information. The POST method does not display the submitted form data in the page address field.

Notes on POST:

  • POST has no size limitations, and can be used to send large amounts of data.
  • Form submissions with POST cannot be bookmarked

The Name Attribute

Each input field must have a name attribute to be submitted.

If the name attribute is omitted, the data of that input field will not be sent at all.

This example will only submit the "Last name" input field:

Example

<form action="/action_page.php">  First name:<br>  <input type="text" value="Mickey"><br>  Last name:<br>  <input type="text" name="lastname" value="Mouse"><br><br>  <input type="submit" value="Submit"></form>

Try it Yourself »

Grouping Form Data with <fieldset>

The <fieldset> element is used to group related data in a form.

The <legend> element defines a caption for the <fieldset> element.

Example

<form action="/action_page.php">  <fieldset>    <legend>Personal information:</legend>    First name:<br>    <input type="text" name="firstname" value="Mickey"><br>    Last name:<br>     <input type="text" name="lastname" value="Mouse"><br><br>     <input type="submit" value="Submit">  </fieldset> </form>

Try it Yourself »

This is how the HTML code above will be displayed in a browser:

Test Yourself with Exercises!

Exercise 1 »   Exercise 2 »   Exercise 3 »   Exercise 4 »

Here is the list of <form> attributes:

Attribute Description
accept-charset Specifies the charset used in the submitted form (default: the page charset).
action Specifies an address (url) where to submit the form (default: the submitting page).
autocomplete Specifies if the browser should autocomplete the form (default: on).
enctype Specifies the encoding of the submitted data (default: is url-encoded).
method Specifies the HTTP method used when submitting the form (default: GET).
name Specifies a name used to identify the form (for DOM usage: document.forms.name).
novalidate Specifies that the browser should not validate the form.
target Specifies the target of the address in the action attribute (default: _self).

You will learn more about the form attributes in the next chapters.

www.w3schools.com

How to delete Autocomplete history

Updated: 01/24/2018 by Computer Hope

This page is for users who are looking to delete stored Autocomplete data such as usernames, passwords, web addresses, and search queries. It is quite common for users to confuse Autocomplete with Autofill, but they are not the same. If you want to clear Autocomplete information in the address bar, see clearing the address bar history. To proceed, select your browser from the listing below and follow the steps.

Microsoft Internet Explorer users

  1. Open Internet Explorer.
  2. Click Tools in the upper right-hand corner.
  3. Select Internet Options from the drop-down menu.
  4. Under the Content tab, in the Autocomplete section, click the Settings button.
  5. Within this window you can select the fields in which you'd like to store Autocomplete data by using the check boxes.
  6. Once you've made your selections, click the Delete Autocomplete history... button.
  7. Check the boxes for areas whose history you'd like to clear then click Delete.
  8. Click OK twice to exit the two windows.

Mozilla Firefox users

  1. Open Firefox.
  2. Click Menu in the upper right-hand corner of the screen.
  3. Select History from the drop-down menu, then Clear Recent History...
  4. Next to Time range to clear: click the down arrow and select Everything.
  5. Click on the arrow next to Details to display the list of items that you can clear.
  6. Make sure the Form & Search History box is checked.
  7. Click the Clear Now button.

Tip: You may press Ctrl+Shift+Del to access the Clear Recent History window.

Chrome

Read First: Autocomplete does not function the same in Chrome as it does in other Internet browsers, thanks in part to Omnibox. The only way to clear all Autocomplete data in form fields is to clear your Autofill data as well. Some users may not want to do this, however, if they like to store address information using the Autofill feature. Therefore, we find the best solution is to clear unwanted entries individually, but both options are listed below.

Deleting Unwanted Entries Individually

  1. Open Chrome.
  2. Click inside the form field containing the entry you want to delete.
  3. Press the Down Arrow Key until the entry is Highlighted.
  4. Press the Delete key. If the entry is not removed, press Shift+Delete.
  5. Repeat as needed.

Deleting All Autocomplete and Autofill Data

  1. Open the Chrome browser.
  2. Press Ctrl+Shift+Del to bring up the Clear browsing data window.
  3. Make sure only the box next to Autofill form data is checked.
  4. Click the Clear browsing data button.

Safari

Read First: Autocomplete does not function quite the same in Safari as it does in other Internet browsers. The only way to clear all Autocomplete data in form fields is to clear your history data as well. This condition can be problematic as many users only want to clear one of the two. Therefore, we find the best solution is to clear unwanted entries individually, but both options are listed below.

Deleting Unwanted Entries Individually

  1. Open the Safari browser.
  2. From the Menu bar at the top, select History.
  3. From the drop-down menu that appears, select Show All History.
  4. Once the history window opens, hold the Ctrl key and click the entry to open the context menu.
  5. Select Delete.
  6. Repeat for each item you not longer want to Autocomplete.

Deleting Autocomplete and History

  1. Click on the Gear icon, which is located near the top-right side of the browser window.
  2. Click the Reset Safari... link, which opens the window shown below. Uncheck any boxes whose content you do not want to delete and click the Reset button.

Opera

Read First: Autocomplete does not function quite the same in Opera as it does in other Internet browsers. The only way to clear all Autocomplete data in form fields is to clear your browsing history data as well. While you can delete a single page from the Opera browsing history, the address for that page will still be autocompleted if you type it in the address bar.

  1. Open the Opera browser.
  2. Click on the Customize menu button at the top left of the Opera window and select the Settings option.
  3. On the Settings window, uncheck the check box for Use a prediction service to help complete searches URLs typed in the address bar.
  4. Click the Clear browsing data button.
  5. On the Clear browsing data pop-up window, select a period of time to delete browsing history data in the Obliterate the following items from drop-down menu.

Note: If you've been using Opera for more than 4 weeks, you may want to select the beginning of time option in the drop-down menu.

  1. Make sure the Browsing history and Clear saved Autofill form data options are checked and click the Clear browsing data button.

www.computerhope.com

How to Autocomplete the Address Fields in Your WordPress Forms

by Shahzad Saeed on Jun 1, 2017

Ever wish you could autocomplete the address fields in your WordPress forms? Autocomplete gives a more professional impression and makes the form filling process more convenient for your users. In this guide, we’ll show you how to autocomplete the address fields in your WordPress forms.

If you prefer not to watch the video, or need more instructions, then please continue reading for step by step instructions.

What is Autocomplete?

Autocomplete allows your visitors to easily fill out the address fields in your form. The autocomplete feature requires you to enable Google Places API on your form.

This makes form filling more convenient because it allows your site visitors to quickly select their address from suggestions generated in realtime as they type.

In fact, making it easier for your users to fill out your form is one of the best ways to encourage more form submissions.

It also helps to validate the information users enter, so that you don’t receive fake or wrong addresses. This will help you to cut down on spam form entries.

Now let’s take a look at the step by step guide to autocomplete the address fields in your WordPress forms.

Note: This plugin will add the entire address to a single text box, such as the first box in an address field.

Install an Address Autocomplete Plugin

The first thing you need to do is install and activate the WPForms plugin. Here’s a step by step guide on how to install a WordPress plugin.

Also, you’ll need to have a form created with the Address field added. See our tutorial on How to Create a Simple Contact Form as an example to get started.

We’ll be using a free plugin Address Autocomplete Using Google Place Api to autosuggest Google Place address when a user fills in the address field.

Create a Google Place API Key

After installing and activating the plugin, go to Settings » Google Autocomplete page to configure plugin settings. You’ll now be asked to enter Google Places API Key.

The API key allows your website to connect with Google Maps and retrieve autocomplete suggestions from Google’s database in real time.

To create an API key, you’ll need to create a new project in your Google Developer Console account. To do this, click on the dropdown menu near the Google APIs heading.

You’ll now see a popup where you’ll have to click on the + icon to create a new project.

You’ll now be prompted to enter the project name. Enter the preferred name for your project and click Create. In a few seconds, you’ll be redirected to the new project page.

Then, you’ll be shown a list of Google APIs that you can enable for your project. Under Google Maps APIs, click on Google Place API Web Service.

Then, click Enable to proceed to the next step.

Now that you’ve enabled the API, the next step is to create credentials for it. Click Create Credentials.

In the Add Credentials to Your Project step, click the What credentials do I need? button.

You’ll now be given an API key. Copy the API key and paste it into your Google Autocomplete settings page in your WordPress dashboard.

Enable Google Maps JavaScript API

You’ll also have to enable another API on your Google Developer Console. In the left taskbar, click Library. Under Google Maps APIs, click Google Maps JavaScript API, and then click Enable in the API overview page.

This API doesn’t need any further configuration.

Add the Form Field Values in Settings

In your web browser, navigate to the contact form page where you want to enable autocomplete address. Then right click on the address field and choose Inspect.

You can now see the source code of the address field.

You’ll have to find the name, ID or CSS values for your address field, in which you want to add autocomplete.

Below are the values in our example:

  • Name: wpforms[fields][1][address1]
  • Class: wpforms-field-address-address1
  • ID: wpforms-526-field_1

Copy at least one of those values and paste it in your autocomplete plugin’s settings page.

If you want to populate multiple address fields in different contact forms, make sure to separate them with a comma.

Then, click Save.

That’s it!

You’ve successfully enabled autocomplete in Your WordPress Forms.

With WPForms, the possibilities to customize your forms are endless.

What are you waiting for? Get started with the most powerful WordPress forms plugin today.

If you like this article, then please follow us on Facebook and Twitter for more free WordPress tutorials.

wpforms.com


Смотрите также